Loading…
Wednesday, September 18 • 14:00 - 15:00
Lifetime analysis for everyone

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Object lifetimes are a common source of bugs in C++ that can cause crashes or other unexpected behavior. Fortunately, we now have tools to help us find issues before they can manifest. Guided by Herb Sutter's paper on lifetime analysis, the Clang community has implemented new lifetime warnings which work on single statements. These warnings are only a subset of what is described in the paper, but they have no false positives and still catch important problems in your code. During this talk we will introduce you to the basic principles of the new warnings, share their results on open source projects, and show you tips and tricks on how to get the most out of these diagnostics both for library and application code authors. Spoiler alert: these warnings found bugs in very popular projects!

Speakers
avatar for Gábor Horváth

Gábor Horváth

Software Engineer, Microsoft
Gabor started a Ph.D. in 2016. He is a contributor to research projects related to static analysis since 2012. He is a clang contributor, participated in Google Summer of Code twice as a student and many times as a mentor, interned for Apple, Microsoft and Google. He taught C++ and... Read More →
avatar for Matthias Gehre

Matthias Gehre

Senior Software Architect, Silexica GmbH
Matthias co-maintains the Clang-based implementation of Herb Sutter’s lifetime checks, available online at https://github.com/mgehre/llvm-project and godbolt.org. He is currently working as a Senior Software Architect at Silexica. With its headquarters in Germany and offices in... Read More →


Wednesday September 18, 2019 14:00 - 15:00 MDT
Aurora D
  • Compilers/Tooling